<Gui:ViewControl x:Class="DanielVaughan.Calcium.Modules.Output.OutputView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Gui="clr-namespace:DanielVaughan.Calcium.Gui"
    xmlns:Module="clr-namespace:DanielVaughan.Calcium.Modules.Output"
	DataContext="{Binding ViewModel, RelativeSource={RelativeSource Self}}">
	<Gui:ViewControl.ViewModel>
		<Module:OutputViewModel />
	</Gui:ViewControl.ViewModel>
	<DockPanel x:Name="ContentPanel">
		<ListView HorizontalContentAlignment="Stretch" ItemsSource="{Binding OutputMessages}">
			<ListView.View>
				<GridView>
					<GridViewColumn Header="Time" DisplayMemberBinding="{Binding Path=CreatedOn}" Width="100"/>
					<GridViewColumn Header="Category" DisplayMemberBinding="{Binding Path=Category}" Width="80"/>
					<!-- TODO: stretch column width. -->
					<GridViewColumn Header="Message" DisplayMemberBinding="{Binding Path=Message}" Width="400"/>
				</GridView>
			</ListView.View>
		</ListView>
	</DockPanel>
</Gui:ViewControl>
